<?php
namespace app\admin\controller;
use think\Db;
use think\Controller;
use think\Session;

class Shaitu extends Controller
{
   

    public function index()
    {

        $c=Db::table('publish')
            ->alias(['publish'=>'a','users'=>'b'])
            ->join('users','b.user_id= a.user_id')
            ->order('publish_id asc')
            ->paginate(5);
            
        $this->assign('list',$c);
       // var_dump($c);
        return $this->fetch('index');

    }
    

}